package com.example.kotlincoroutine.repository

import kotlinx.coroutines.delay

data class User(val name: String, val address: String)

object UserServiceApi {
    suspend fun getUser(): User {
//        Thread.sleep(3000)
        delay(3000)
        return User("zhangSan", "zhengzhou")
    }
}